home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Pressure Equivalents.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
7KB
|
230 lines
[SUBJECT]
Description=Converts bewteen different units of pressure
ImageIndex=-1
Folder=Mathematics
[BODY_TEXT]
;<!-- Cut-N-Paste JavaScript from ISN Toolbox
;Copyright 1996, Infohiway Server Network. Restricted use is hereby
;granted (both personal and commercial use OK so long as this code is
;not *directly* sold), providing this notice is buried somewhere deep
;in your HTML document. A link to http://www.infohiway.com is always
;appreciated, but is absolutely and positively not necessary. :-) -->
;
;<script language="JavaScript">
;
;<!-- Hide JavaScript from Java-Impaired Browsers
;
;function initArray() {
;
; this.length = initArray.arguments.length;
;
; for (var i = 0; i < this.length; i++) {
;
; this[i] = initArray.arguments[i];
;
; }
;
; }
;
;/* Please don't ask about this work-around. It works... We're sure arrays
;
; will be better supported soon. */
;
;var isn09 = new initArray("4b","5b","8b","8b");
;
;isn09[0] = "~01~11.0197~214.5~30.9869~40.7501~529.53~610.21~7401.8~833.49~9";
;
;isn09[1] = "~00.9807~11~214.22~30.9678~40.7356~528.96~610.01~7394.1~832.84~9";
;
;isn09[2] = "~00.06895~10.07031~21~30.06805~40.05171~52.036~60.7037~727.7~82.309~9";
;
;isn09[3] = "~01.0133~11.0332~214.7~31~40.76~529.92~610.34~7407.1~833.93~9";
;
;isn09[4] = "~01.3332~11.3595~219.34~31.316~41~539.37~613.61~7535.7~844.64~9";
;
;isn09[5] = "~00.03386~10.03453~20.4912~30.03342~40.0254~51~60.3456~713.61~81.134~9";
;
;isn09[6] = "~00.09798~10.09991~21.421~30.0967~40.07349~52.893~61~739.37~83.281~9";
;
;isn09[7] = "~00.002489~10.002538~20.03609~30.002456~40.001867~50.07349~60.02540~71~80.083333~9";
;
;isn09[8] = "~00.02986~10.03045~20.4331~30.02947~40.0224~50.8819~60.3048~712~81~9";
;
;
;
;
;
;function preCon() {
;
; // First, get the variables checked by the user
;
; for (var i = 0; i < 9; i++) {
;
; if (document.isnform09.prei[i].checked) {
;
; prei = i;
;
; preinm = document.isnform09.prei[i].value;
;
; }
;
; }
;
; for (var i = 0; i < 9; i++) {
;
; if (document.isnform09.preo[i].checked) {
;
; preo = i;
;
; preonm = document.isnform09.preo[i].value;
;
; }
;
; }
;
; // Now grab the numeric input by user and parse to be sure numeric
;
; useri = document.isnform09.preinp.value;
;
; if (useri == 0) {
;
; useri = 1;
;
; document.isnform09.preinp.value = useri;
;
; }
;
; mulstr = isn09[prei];
;
; picker = "~" + preo;
;
; ps = mulstr.indexOf(picker);
;
; preo++;
;
; picker = "~" + preo;
;
; ps1 = mulstr.indexOf(picker);
;
; mulstr = mulstr.substring((ps + 2),ps1);
;
; ps = (useri * mulstr);
;
; picker = "";
;
; picker += ps;
;
; ps1 = picker.indexOf(".");
;
; if (ps1 > -1) {
;
; // Correct for binary/floating point conversion error
;
; ps = ps + .000001;
;
; picker = "";
;
; picker += ps;
;
; ps2 = picker.indexOf("e");
;
; if (ps2 < 0) {
;
; picker = picker.substring(0,(ps1 + 6));
;
; }
;
; if (ps2 == 0 || ps2 > 0) {
;
; ps3 = picker.indexOf("00000");
;
; if (ps3 > 0) {
;
; picker = picker.substring(0,ps3 + 1) + picker.substring(ps2,picker.length);
;
; }
;
; }
;
; }
;
; picker = useri + " " + preinm + " = " + picker + " " + preonm;
;
; document.isnform09.preout.value = picker;
;
; }
;
;// End Hiding -->
;
;
;
;</script>
;<form name="isnform09">
;<table border="1" width="486" summary="">
;
;<tr><td colspan="10" align="center"><font color="blue"><b>`Caption`</b></font></TD></tr>
;
;<tr><td colspan="10" valign="top"><font size="1"><b>First, type the number you wish converted here: </b>
;
;<input type="text" name="preinp" size="30" value="" onChange="preCon();"><br><b>Then, click radio buttons for desired conversion:</B></font></td></tr>
;
;<tr><td align="center"><font color="red" size="1"><b>Fm:</b></font></td>
;
;<td align="center" valign="top"><font size="1">megadynes/<br>sq cm<br><input type="radio" name="prei" value="megadynes/sq cm" checked onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">kg/<br>sq cm<br><input type="radio" name="prei" value="kg/sq cm" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">lb/<br>sq in<br><input type="radio" name="prei" value="lb/sq in" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">atmos-<br>pheres<br><input type="radio" name="prei" value="atmospheres" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Hg*<br>Meters<br><input type="radio" name="prei" value="Std Hg Col Meters" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Hg*<br>Inches<br><input type="radio" name="prei" value="Std Hg Col Inches" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">H2O*<br>Meters<br><input type="radio" name="prei" value="Std H20 Col Meters" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">H20*<br>Inches<br><input type="radio" name="prei" value="Std H20 Col Inches" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">H20*<br>Feet<br><input type="radio" name="prei" value="Std H20 Col Feet" onClick = ""></font></TD></tr>
;
;<tr><td align="center"><font color="red" size="1"><b>To:</b></font></TD>
;
;<td align="center" valign="top"><font size="1">megadynes/<br>sq cm<br><input type="radio" name="preo" value="megadynes/sq cm" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">kg/<br>sq cm<br><input type="radio" name="preo" value="kg/sq cm" checked onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">lb/<br>sq in<br><input type="radio" name="preo" value="lb/sq in" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">atmos-<br>pheres<br><input type="radio" name="preo" value="atmospheres" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Hg*<br>Meters<br><input type="radio" name="preo" value="Std Hg Col Meters" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Hg*<br>Inches<br><input type="radio" name="preo" value="Std Hg Col Inches" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">H2O*<br>Meters<br><input type="radio" name="preo" value="Std H20 Col Meters" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">H2O*<br>Inches<br><input type="radio" name="preo" value="Std H20 Col Inches" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">H20*<br>Feet<br><input type="radio" name="preo" value="Std H20 Col Feet" onClick = ""></font></TD></tr>
;
;<tr><td colspan="10" align="center" valign="top"><font size="1"><input type="button" value=" Click for Conversion " onClick="preCon();">
;<input type="reset" value=" Reset Values "><br><input type="text" name="preout" size="60" value="" onClick="preCon();">
;<br>*Standard columns of Mercury at 0<sup>o</sup> C, <i>g</i> = 980.665 cm/sec/sec<br> Standard columns of Water at 60<sup>o</sup> F, <i>g</i> = 32.1756 ft/sec/sec
;
;</font></TD></tr>
;
;</table></form>
;
;<p>
;
[`Caption`]
Kind=S
Value=Pressure Equivalents